const Router = require("koa-router");
const adminController = require("../controllers/userController");

const router = new Router();

// 路由路径应与 Postman 中的请求路径匹配
router.post("/register", adminController.createUser);
router.post("/login", adminController.loginUser);
router.post("/agent/addlist", adminController.addAgentList);
router.post("/agent/invoiceDownload", adminController.invoiceDownload);
router.post("/agent/getAllInvoices", adminController.getAllInvoices);
router.post("/admin/upload", adminController.upload);
module.exports = router;
